<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>客户联系人</title>
    <%@ include file="/WEB-INF/views/commons/common.jsp"%>
    <script type="text/javascript" src="/static/js/system/linkMan.js"></script>
</head>
<body>
    <%--数据表格--%>
    <table id="all_datagrid"  fit="true"></table>

    <%--表格工具栏--%>
    <div id="tb">
        <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">添加</a>
        <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
        <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" data-cmd="remove">删除</a>
        <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
        </a>
            <input type="text" class="easyui-textbox" id="keyword" prompt="姓名或联系人">
            所属学校:<input class="easyui-combobox" name="clientId" id="clientId"
                        data-options="
                        url:'/dictionaryItem/getDictionaryItemByParentName.do?content=' + '大客户所在的学校',
                        valueField:'id',
                        textField:'name',
                        panelHeight:'auto'
                    "/>
        <a href="javascript:;" class="easyui-linkbutton" data-cmd="query" data-options="iconCls:'icon-search',plain:true">查询</a>
    </div>


    <%--添加和编辑弹窗--%>
        <div id="edit_dialog" align="center">
        <form id="edit_form" method="post">
            <table  CELLSPACING="20" align="center" style="margin-top: 20px;
                    border-collapse:separate; border-spacing:0px 10px;">
                <input type="hidden" id="hiddenId" name="id">
                <tr>
                    <td>姓名:</td>
                    <td><input class="easyui-textbox" required="true" name="name"/></td>
                </tr>
                <tr>
                    <td>性别:</td>
                    <td><input  name="sex" class="easyui-combobox" data-options="
                            required:true,
                            editable:false,
                             valueField: 'id',
                             textField: 'name',
                             data: [{
                                 id: '1',
                                 name: '男'
                             },{
                                 id: '0',
                                 name: '女'
                             }],
                             panelHeight:'auto'
                             "/>
                    </td>
                </tr>
                <tr>
                    <td>学校大客户:</td>
                    <td><input  name="clientSchool.id" class="easyui-combobox" data-options="
                            required:true,
                            valueField: 'id',
                            textField: 'name',
                            url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '大客户所在的学校',
                            editable:false,
                            panelHeight:'auto'
                            "/>
                    </td>
                </tr>
                <tr>
                    <td>部门:</td>
                    <td><input class="easyui-textbox" required="true" name="department"/></td>
                </tr>
                <tr>
                    <td>岗位:</td>
                    <td><input class="easyui-textbox" required="true" name="duty"/></td>
                </tr>
                <tr>
                    <td>电话:</td>
                    <td><input class="easyui-textbox" required="true" name="phone"/></td>
                </tr>
                <tr>
                    <td>QQ:</td>
                    <td><input class="easyui-textbox" required="true" name="qq"/></td>
                </tr>
                <tr>
                    <td>学校:</td>
                    <td><input class="easyui-textbox" required="true" name="email"/></td>
                </tr>
                <tr>
                    <td>是否主要联系人:</td>
                    <td><input  name="main" class="easyui-combobox" data-options="
                             required:true,
                             editable:false,
                             valueField: 'id',
                             textField: 'name',
                             data: [{
                                 id: '1',
                                 name: '是'
                             },{
                                 id: '0',
                                 name: '否'
                             }],
                             panelHeight:'auto'
                             "/>
                    </td>
                </tr>
            </table>
        </form>
    </div>

    <%--弹窗底部按钮--%>
    </div>
    <div id="bb">
        <a href="JavaScript:;" class="easyui-linkbutton dialog-button" iconCls="icon-save" data-cmd="save">保存</a>
        <a href="JavaScript:;" class="easyui-linkbutton dialog-button" iconCls="icon-reload" data-cmd="clear">重置</a>
        <a href="JavaScript:;" class="easyui-linkbutton" iconCls="icon-cancel" data-cmd="cancel">关闭</a>
    </div>



</body>
</html>
